package com.jswlw.service.biz;

import com.github.pagehelper.Page;
import com.jswlw.entity.biz.Distributor;

import java.util.List;

public interface DistributorService {

    void add(Distributor distributor);

    void update(Distributor distributor);

    void delete(Integer id);

    Distributor find4Id(Integer id);

    List<Distributor> queryList(Distributor filter);

    Page<Distributor> queryPage(Distributor distributor, Integer offset, Integer limit);

    int queryMaxCount(Integer parentId);

    List<Integer> getChildrenIds(Integer parentId);
}
